import { ref } from 'vue';
import { defineStore } from 'pinia';

export const useSystemConfigStore = defineStore(
  'systemConfig',
  () => {
    const darkMode = ref(false);
    const setDayMode = () => {
      darkMode.value = false;
    };

    const setDarkMode = () => {
      darkMode.value = true;
    };

    return { darkMode, setDayMode, setDarkMode };
  },
  {
    persist: true
  }
);
